package com.cloudkinto.controller.progress;


import com.cloudkinto.base.BaseController;
import com.cloudkinto.bo.progress.ProgressQueryBo;
import com.cloudkinto.common.annotations.UserSessionRequired;
import com.cloudkinto.service.progress.ProgressService;
import com.cloudkinto.vo.progress.ProgressVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 业务进度表 前端控制器
 * </p>
 *
 * @author long
 * @since 2024-11-01
 */
@RestController
@RequiredArgsConstructor
@Api(tags = "业务进度表模块")
@RequestMapping("/api/admin/progress")
public class ProgressController extends BaseController {
    private final ProgressService progressService;

    @UserSessionRequired
    @ApiOperation(value = "查询业务进度", notes = "查询业务进度")
    @PostMapping
    public List<ProgressVo> getProgress(@RequestBody @Validated ProgressQueryBo bo) {
        return progressService.getProgress(bo);
    }
}

